package com.yunsc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunsc.store.entity.YunscPageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 店铺页面记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:52
 */
@Mapper
public interface YunscPageDao extends BaseMapper<YunscPageEntity> {

    @Update("UPDATE yunsc_page SET page_type = CASE WHEN page_id = #{pageId} THEN 10 ELSE 20 END")
    Integer setPageHome(@Param("pageId") Integer pageId);
}
